package cn.xumaoyang.pet.domain;


import cn.xumaoyang.basic.damain.BaseDamain;
import cn.xumaoyang.org.domain.Shop;
import cn.xumaoyang.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BaseDamain {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    //时间的正确格式。
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    private Integer state = 0 ;   //0上架 1下架。
    private BigDecimal costprice;
    private Date createtime;
    private Long type_id;
    private PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    private Long search_master_msg_id;

    private PetDetail detail = new PetDetail();

}
